package com.rm.zeyou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rm.zeyou.entity.TechnicianTime;
import com.rm.zeyou.vo.response.SelectLatelyTime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 技师时间管理表 Mapper 接口
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:09
 */
@Mapper
public interface TechnicianTimeMapper extends BaseMapper<TechnicianTime> {
    Integer deleteTechnicianTime(@Param("day") String day, @Param("tids") List<Long> tids);

    List<TechnicianTime> seleServiceTime(@Param("tid")Long tid,@Param("day") String day, @Param("time") String time);

    List<TechnicianTime> seleTime(@Param("tid")Long tid,@Param("day") String day, @Param("time") String time);

    Integer updateTimeToOne(@Param("tid") Long tid,@Param("startTime") String startTime,@Param("endTime") String endTime);

    Integer updateTimeToTwo(@Param("tid")Long tid, @Param("serviceTime")String serviceTime);
    TechnicianTime selectOneTechnicianTime(@Param("tid")Long tid, @Param("serviceTime")String serviceTime);

    void deleteTechnicianTimeByDate(@Param("tids")List<Long> tids, @Param("year")Integer year, @Param("day")String day);

    SelectLatelyTime selectLatelyTime(@Param("tid") Long tid, @Param("day") String day,@Param("itemTime") Integer itemTime);

    SelectLatelyTime selectTormLatelyTime(@Param("tid") Long tid, @Param("day") String day);

    SelectLatelyTime selectTechnicianLatelyTime(@Param("tid") Long tid, @Param("day") String day);
    SelectLatelyTime selectTechnicianTormLatelyTime(@Param("tid") Long tid, @Param("day") String day);
}
